﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Jalal.Library.Web;

namespace BCGC.BLL.Helper
{
    public class AdminBasePage : BasePage
    {
        protected override void OnPreInit(EventArgs e)
        {
            base.OnPreInit(e);
            Theme = "AdminDefault";
        }

        protected override void OnLoad(EventArgs e)
        {
            base.OnLoad(e);
            if (!SessionManager.IsAdminUserLoggedIn)
                Response.Redirect(CustomSiteMap.AdminLogin);
        }
    }
}
